<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>对象类型</title>
</head>
<body>
<p th:text="${stu.id}">id</p>
<p th:text="${stu.name}">name</p>
<p th:text="${stu.email}">email</p>
<p th:text="${stu.getAge()}">age</p>
<p th:text="${stu.sex}">sex</p>
</body>
</html>